<?php

!defined('IN_ROOT') && exit('Access Denied');

class indexcontrol extends base {

    function indexcontrol(& $get,& $post) {
        $this->base( & $get,& $post);
        $this->load("site");
    }

    function ondefault() {

        //$sitelist = $_ENV['site']->get_list();
        $sitelist = $this->site;
        $hotsite = $this->hotsite;
        $py = $this->pyarray;
        include template('index');
    }

    function onhelp() {
        $this->load('usergroup');
        $usergrouplist = $_ENV['usergroup']->get_list(2);
        include template('help');
    }
}
?>